<template>
  <div class="all">
    <div class="all-box" v-if="shows">
    <div class="toptext">
      <span class="icons">
        <img :src="images8" class="images8">
      </span>
      <span class="companyname">华夏黉</span>
      <span class="text">等待买家付款</span>
    </div>
    <ul class="cartlist-bigbox">
      <li class="cartlist-box">
        <div class="paymentgoods">
          <div class="paymentgoods-box">
            <div class="int">
              <input type="checkbox" id="name">
            </div>
            <div class="paymentgoods-picture"></div>
            <div class="paymentgoods-title">
              <div class="paymentgoods-title-introduce">
                宋词唐诗三百首》马未都亲笔推荐精装插图全彩珍藏版
                重磅推荐
              </div>
              <div class="paymentgoods-title-category">典藏版（彩色）</div>
              <div class="num">X1</div>
            </div>
          </div>
        </div>
      </li>
    </ul>
    <div class="total">
      <div class="totalprice">合计：￥</div>
      <div class="text">
        <span class="logistics">取消订单</span>
        <span class="surereaive">付款</span>
      </div>
    </div>
    </div>
    <div class="elseif" v-else>
       <div class="elsetext">居然还没有订单</div>
       <div class="elsetextcenter">逛一逛，发现更多好物</div>
       <router-link
       to="./mall"
       ><div class="elsetextbottom">去逛逛</div></router-link>
    </div>
  </div>
</template>

<script>
import pic8 from "../../../icons/shop.png";
export default {
  name: "ALL",
  data() {
    return {
      images8: pic8,
      shows:''
    };
  }
};
</script>

<style lang="less" scoped>
.all {
  width: 100%;
  height: 100%;
}
&-box{
  width: 100%;
}
.elsetext{
  font-size: 28px;
  color: #333333;
  text-align: center;
  margin-top: 150px;
  margin-bottom: 40px;
}
.elsetextcenter{
  font-size: 20px;
  color: #999;
  margin-bottom: 40px;
  text-align: center;
}
.elsetextbottom{
  font-size: 24px;
  width: 120px;
  height: 60px;
  border: 1px solid #ba251e;
  text-align: center;
  line-height: 60px;
  margin: 0 auto;
  color: #ba251e;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  vertical-align: middle;
  margin-top: 0;
  background: #fff;
  border: #999 solid 1px;
  border-radius: 3px;
  min-height: 20px;
  min-width: 20px;
  border-radius: 50%;
}
input[type="checkbox"]:checked {
  background: #ba251e;
  border: none;
}
input[type="checkbox"]:checked::after {
  content: "";
  top: 28px;
  left: 33px;
  position: absolute;
  background: transparent;
  border: #fff solid 2px;
  border-top: none;
  border-right: none;
  height: 5px;
  width: 10px;
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.toptext {
  width: 100%;
  height: 60px;
  background: #fff;
  font-size: 20px;
  color: #333333;
  line-height: 60px;
  .images8 {
    width: 25px;
    height: 25px;
    margin-left: 20px;
    margin-right: 10px;
  }
  .text {
    font-size: 20px;
    color: #ba251e;
    float: right;
    margin-right: 40px;
  }
}
.paymentgoods {
  width: 100%;
  margin-bottom: 2px solid #f2f2f2;
  position: relative;
  &-box {
    width: 100%;
    height: 170px;
    background: #fff;
    padding-top: 10px;
    display: flex;
    letter-spacing: 2px;
    .int {
      width: 20px;
      height: 170px;
      line-height: 170px;
      margin-left: 3%;
      position: relative;
      input[type="checkbox"]:checked::after {
        content: "";
        top: 79px;
        left: 4px;
        position: absolute;
        background: transparent;
        border: #fff solid 2px;
        border-top: none;
        border-right: none;
        height: 5px;
        width: 10px;
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
      }
    }
  }

  &-picture {
    width: 150px;
    height: 150px;
    background: #333333;
    margin-left: 3%;
    margin-right: 20px;
  }

  &-title {
    flex: 1;
    margin-right: 3%;

    &-introduce {
      font-size: 22px;
      color: #666666;
      line-height: 30px;
    }
    &-category {
      font-size: 20px;
      color: #999999;
      margin-top: 20px;
    }

    .num {
      float: right;
      position: absolute;
      top: 140px;
      right: 40px;
    }
  }
}
.total {
  width: 100%;
  height: 120px;
  background: #fff;
  display: flex;
  padding-top: 10px;

  flex-direction: row-reverse;
  position: relative;
  .logistics {
    width: 120px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;
    text-align: center;
    color: #666666;
    border: 2px solid #333333;
    border-radius: 30px;
    color: #333333;
    position: absolute;
    right: 180px;
    top: 50px;
  }
  .surereaive {
    width: 80px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;
    text-align: center;
    color: #666666;
    border: 2px solid #ba251e;
    border-radius: 30px;
    color: #ba251e;
    position: absolute;
    right: 40px;
    top: 50px;
  }
  .totalprice {
    font-size: 20px;
    color: #999999;
    margin-right: 40px;
  }
}
</style>
